
{{#each this}}
<div data-id="{{tempId}}" data-entity-id="{{entityId}}" class="infoline corridorList">
    
    <div class="corridor-wrapper">
        <span class="corridor-title">{{name}}</span>
        <button class="btn btn-mini bar" data-action="remove_corridor" title="{{L 'remove_corridor'}}"><i class="icon-trash"></i></button>
        <button class="btn btn-mini bar" data-action="add_subcorridor" title="{{L 'add_subcorridor'}}"><i class="icon-plus-sign"></i></button>
        <button class="btn btn-mini bar" data-action="edit_corridor" title="{{L 'edit_corridor'}}"><i class="icon-edit"></i></button>
        <button class="btn btn-mini bar" data-action="add_corridor" title="{{L 'add_corridor'}}"><i class="icon-plus"></i></button>
    </div>
    <div class="input-append editor corridorEditor nodisplay">
        <input type="text">
        <button class="btn" data-action="ok"><i class="icon-ok"></i></button>
        <button class="btn" data-action="cancel"><i class="icon-remove"></i></button>
    </div>

    <ul class="subcorridorItemContainer">

        {{#each childrens}}
            <li data-id="{{tempId}}" data-entity-id="{{entityId}}" class="contracted">

                <div class="subcorridor-wrapper">
                    <i class="icon-sort sorter"></i>
                    <i class="icon-caret-right contracted expandor"></i>
                    <i class="icon-caret-down expanded expandor"></i>
                    <a class="subcorridor" href="#">{{name}}</a>
                    <button class="btn btn-mini bar giContextMenu" title="{{L 'more'}}"><i class="glyphicon-more"></i></button>
                    <button class="btn btn-mini bar define" data-action="define_subcorridor" title="{{L 'define_subcorridor'}}"><i class="icon-map-marker"></i></button>
                    <button class="btn btn-mini bar" data-action="hide_subcorridor" title="{{L 'show_hide_subcorridor'}}"><i class="icon-eye-open"></i></button>
                </div>
                <div class="input-append editor nodisplay">
                    <input type="text">
                    <button class="btn" data-action="ok" ><i class="icon-ok"></i></button>
                    <button class="btn" data-action="cancel"><i class="icon-remove"></i></button>
                </div>

                <table class="table table-hover table-nomargin table-condensed">
                    <tbody>
                        {{#each links}}
                        <tr>
                            <td class="node start" data-value="{{nodeFrom.entityId}}" data-type="node" data-entity="{{nodeFrom.dataType}}">
                                <img src="{{nodeFrom.img}}" title="{{nodeFrom.name}}" class="nodata" />
                            </td>
                            <td class="link" width="80%" data-value="{{link.entityId}}" data-type="link" data-entity="{{link.dataType}}">
                                <div class="link" style="background-color: {{linkColor}}"></div>
                                <span class="nodata">{{link.name}}</span>
                            </td>
                            <td class="node end" data-value="{{nodeTo.entityId}}" data-type="node" data-entity="{{nodeTo.dataType}}">
                                <img src="{{nodeTo.img}}" title="{{nodeTo.name}}" class="nodata" />
                            </td>
                        </tr>
                        {{/each}}
                    </tbody>
                </table>
            </li>
        {{/each}}

    </ul>
</div>
{{/each}}